<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="st" uri="/as-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'studentList.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

	</head>

	<script type="text/javascript">
   function del()
  {
    if(confirm("确定删除该班级？"))
   {
      return true;
   }
       return false;
  }

   </script>

	<body>
		<jsp:include page="head.jsp"></jsp:include>
		<center>
			<h1>
				<font color="red"> 已开设的课程班 </font>
			</h1>
			<table border="10%" width="80%" align="center">
				<tr>
					<td>
						课程名
					</td>
					<td>
						课程开始日期
					</td>
					<td>
						课程结束日期
					</td>
					<td>
						学时
					</td>
					<td>
						删除
					</td>
					<td>
						修改
					</td>
					<td>
						添加学生
					</td>
					<td>
						添加教师
					</td>
					<td>
						查看学生列表
					</td>
					<td>
						查看教师列表
					</td>
					<td>
						查看指纹注册号列表
					</td>
				</tr>

				<s:iterator value="#request.list" id="usme">

					<tr>
						<td>
							<s:property value="#usme.name" />
						</td>

						<td>
							<!--<s:property value="#usme.startTime" />
							--><s:date name="startTime" format="yy-MM-dd"/>
						</td>

						<td>
							<!--<s:property value="#usme.endTime" />
							--><s:date name="endTime" format="yy-MM-dd"/>
						</td>

						<td>
							<s:property value="#usme.classHour" />
						</td>
						<td>
							<s:a href="admin/deleteCourse.action?courseId=%{#usme.courseId}"
								onclick="return del();">删除</s:a>
						</td>

						<td>
							<s:a
								href="admin/updatePCourse.action?course.courseId=%{#usme.courseId}">修改</s:a>
						</td>
						<td>
							<s:a
								href="admin/addPSingleStudent.action?course.courseId=%{#usme.courseId}">添加</s:a>
						</td>
						<td>
							<s:a
								href="admin/addPSingleTeacher.action?course.courseId=%{#usme.courseId}">添加</s:a>
						</td>
						<td>
							<s:a href="admin/studentList.action?courseId=%{#usme.courseId}">查看</s:a>
						</td>
						<td>
							<s:a href="admin/teacherList.action?courseId=%{#usme.courseId}">查看</s:a>
						</td>
						<td>
							<s:a
								href="admin/registerList.action?course.courseId=%{#usme.courseId}">查看</s:a>
						</td>
					</tr>
				</s:iterator>
			</table>
			<br>

			<st:pageCode
				url="admin/courseList.action?course.courseId=${usme.courseId}&pageNo=:pageNo"
				maxPageNo="${maxPageNo}" currentPageNo="${pageNo}" />



			<p>
				点击
				<a href="javascript:history.go(-1);">返回</a>上一页面
			</p>
		</center>
	</body>
</html>
